//
//  UtilsMacro.h
//  WProjectForNative
//
//  Created by huangzhen on 16/9/9.
//  Copyright © 2016年 huangzhen. All rights reserved.
//

#ifndef UtilsMacro_h
#define UtilsMacro_h

#define ApplicationDelegate                 ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define UserDefaults                        [NSUserDefaults standardUserDefaults]
#define NavBarHeight                        64.0f
#define TabBarHeight                        self.tabBarController.tabBar.bounds.size.height
#define ScreenWidth                         [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight                        [[UIScreen mainScreen] bounds].size.height

#define F(string, args...)                  [NSString stringWithFormat:string, args]

#define RGB(r, g, b)                        [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]
#define RGBA(r, g, b, a)                    [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define HEXCOLOR(c)                         [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0]
#define kBundleIdentifier         [[NSBundle mainBundle] bundleIdentifier]

#define KeyBoardInputAccessoryViewSpec                      (ScreenHeight>480?7.0f:29.0f)
//常用颜色
#define kNavBlueColor RGB(56,158,234)
#define kMTintRedColor RGB(247,85,73)
#define kMTintBackgroundColor RGB(240,241,244)
#define kMTintLineColor RGB(224,224,224)
#define kWebNavigateColor RGB(249,249,249)
#define KWebShadowColor RGB(178,178,178)
#define kWTintBlueColor RGB(81,198,208)

#define Hurl @"http://192.168.1.76/hr/appservice"
#define DebugURL @"http://192.168.1.76/hopetargle/hr/appservice"
#define kLoginData @"logindata"
#endif /* UtilsMacro_h */
